}
for (i = 0; i < sizeof(d103_icons) / sizeof(d103_icons[0]); i++) {
- if (0 == (s.compare(d103_icons[i]), Qt::CaseInsensitive)) {
+ if (0 == (s.compare(d103_icons[i], Qt::CaseInsensitive))) {
return i;
}
}
wpt_tmp->fix = (fix_type)(atoi(CSTR(cdatastr)) - 1);
}
if (wpt_tmp->fix < fix_2d) {
- if ((cdatastr.compare("none"), Qt::CaseInsensitive) == 0) {
+ if ((cdatastr.compare("none", Qt::CaseInsensitive)) == 0) {
wpt_tmp->fix = fix_none;
- } else if ((cdatastr.compare("dgps"), Qt::CaseInsensitive) == 0) {
+ } else if ((cdatastr.compare("dgps", Qt::CaseInsensitive)) == 0) {
wpt_tmp->fix = fix_dgps;
- } else if ((cdatastr.compare("pps"), Qt::CaseInsensitive) == 0) {
+ } else if ((cdatastr.compare("pps", Qt::CaseInsensitive)) == 0) {
wpt_tmp->fix = fix_pps;
} else {
wpt_tmp->fix = fix_unknown;